package com.fqgj.sentry.policy.engine.domain.enums;

public enum OperationTypeEnum {


    /**
     * 变量| 常量 | 脚本 | 三方脚本
     */
    VARIABLE, CONSTANT, SCRIPT, TRIPLE_SCRIPT;

    public static OperationTypeEnum transformByType(Integer type) {
        for (OperationTypeEnum opTypeEnum : OperationTypeEnum.values()) {
            if (opTypeEnum.ordinal() + 1 == type) {
                return opTypeEnum;
            }
        }
        return null;
    }


}
